<?php

use Pecee\SimpleRouter\SimpleRouter as Router;

// 默认路由
// Router::get('/', 'Index@index');
Router::get('/', function() {
    return 'index page.';
});

// RESTful资源路由
Router::all('api/{resource}/{id?}', '\hbynlsl\spf\ApiController@call');
